package com.itshen.entity;

import lombok.Data;
import tk.mybatis.mapper.annotation.Version;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

@Data
@Table(name = "tb_user")
public class User {
    @Id
    private Long id;
    /** 姓名 **/
    private String name;
    /** 手机号**/
    @NotNull
    private String mobile;
    /** 邮箱 **/
    private String email;
    /** 身份证号 **/
    private String IDNo;
    @Version
    private int version;
}
